package com.yh.csx.etl.config;

/**
 * 数据源配置
 * 
 * @author Robin.Wang
 * @date 2020-03-18
 *
 */
public class EtlDataSource {

    private String driver = "com.mysql.jdbc.Driver"; // 默认为mysql jdbc驱动
    private String url; // jdbc url
    private String database; // jdbc database
    private String type = "mysql"; // 类型, 默认为mysql
    private String username; // jdbc username
    private String password; // jdbc password
    private Integer maxActive = 3; // 连接池最大连接数,默认为3
    private Integer maxWait = 120000; // 最大等待时间
    private Integer maxOpenPreparedStatements = 20;

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(Integer maxActive) {
        this.maxActive = maxActive;
    }

    public Integer getMaxWait() {
        return maxWait;
    }

    public void setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
    }

    public Integer getMaxOpenPreparedStatements() {
        return maxOpenPreparedStatements;
    }

    public void setMaxOpenPreparedStatements(Integer maxOpenPreparedStatements) {
        this.maxOpenPreparedStatements = maxOpenPreparedStatements;
    }

}
